package com.cloudbroker.bcs.platform.ltb.middle.service.impl;

import com.cloudbroker.bcs.common.dao.base.DAOBase;
import com.cloudbroker.bcs.platform.ltb.middle.dao.SmsAuthkeyDAO;
import com.cloudbroker.bcs.platform.ltb.middle.entity.SmsAuthkey;
import com.cloudbroker.bcs.platform.ltb.middle.service.SmsAuthkeyService;
import com.cloudbroker.bcs.platform.ltb.middle.service.base.TenantServiceImplBase;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by lili19289 on 2016/10/21.
 */
@Service
public class SmsAuthkeyServiceImpl extends TenantServiceImplBase<SmsAuthkey,String> implements SmsAuthkeyService {

    @Resource
    private SmsAuthkeyDAO smsAuthkeyDAO;

    @Override
    protected DAOBase<SmsAuthkey, String> getDAO() {
        return smsAuthkeyDAO;
    }

    public SmsAuthkey findByType(SmsAuthkey smsAuthkey){
        return smsAuthkeyDAO.findByType(smsAuthkey);
    }
}
